class KinectVectorTracker
{
   PVector vec;
   PVector currentPoint;
  
  KinectVectorTracker(){
    vec = new PVector(0,0);
    currentPoint = new PVector(0,0);
  }
  KinectVectorTracker(int x,int y){
    vec = new PVector(x,y);
    currentPoint = new PVector(0,0);
    vec.normalize();
  } 
  KinectVectorTracker(PVector v){
    vec = v;
    currentPoint = new PVector(0,0);
    vec.normalize();
  }
  
  String setNewPosition(PVector np)
  {  
    int x = (int)Math.abs(np.x-currentPoint.x);
    vec = PVector.sub(np,currentPoint);
    currentPoint = np;
    return ""+x;    
  }
  
  PVector getVec()
  {
     return vec; 
  }
  
  PVector getCurrentPoint(){
    return currentPoint;
  }
}
